
from google.appengine.api import users
from django.http import HttpResponse, HttpResponseRedirect

def main(request):
    return HttpResponse('Print Project Description Here!', mimetype='text/plain')

def hello(request):
    user = users.get_current_user()
    if user:
        return HttpResponse('Hello, ' + user.nickname(), mimetype='text/plain')
    else:
        return HttpResponseRedirect(users.create_login_url(request.get_full_path()))